//
//  LineModel.m
//  ImGuider
//
//  Created by llt on 2017/6/19.
//  Copyright © 2017年 imguider. All rights reserved.
//

#import "LineModel.h"

@implementation LineModel

+ (NSDictionary *)modelContainerPropertyGenericClass {
    
    return @{@"records" : [ScenicPoint class], @"comments" : [Comment class], @"questions" : [Question class]};
}

- (NSMutableArray *)tagArray {
    
    if (!_tagArray) {
        _tagArray = [NSMutableArray array];
        
        for (NSString * str in [self.labels componentsSeparatedByString:@","]) {
            if (str.length > 0) {
                [_tagArray addObject:str];
            }
        }
    }
    
    return _tagArray;
}


- (NSMutableArray *)mapPicArray {
    
    if (!_mapPicArray) {
        _mapPicArray = [NSMutableArray array];
        
        for (NSString * str in [self.maps componentsSeparatedByString:@","]) {
            if (str.length > 0) {
                [_mapPicArray addObject:str];
            }
        }
    }
    
    return _mapPicArray;
}


- (NSArray *)pictureArray {
    
    return [self.pictures componentsSeparatedByString:@","];
}
@end
